<?php
class Maverick_Form extends Zend_Form{
	
 	public function __construct($options = null){
 		parent::__construct($options);
 		$this->getDecorator('HtmlTag')->setOptions(array('tag' => 'div','class' => 'dupa'));
 		$elements = $this->getElements();
 		$l = $this->getElement('name');
 		$l->setDecorators(array(
 			array('ViewHelper'),
		    array('Errors',array('placement' => 'prepend')),
		    array('HtmlTag', array('tag' => 'div','class' => 'dupa')),
		    array('Label', array('tag' => 'div'))
 		));
 		$e = $l->getDecorator('Errors');
 		print_r($e);
 		
 		foreach ($elements as $el){
 			$el->setDecorators(array(
 			array('ViewHelper'),
		    array('Errors',array('placement' => 'prepend')),
		    array('HtmlTag', array('tag' => 'div','class' => 'dupa')),
		    array('Label', array('tag' => 'div'))
 		));
 		}
 	}
    
}
?>